credential management api